package com.zmm.study.car.dao;

import com.zmm.study.car.pojo.Car;
import com.zmm.study.car.vo.StoreList;
import com.zmm.study.car.vo.StoreQuery;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * description
 * name CarDao
 *
 * @author Zebulon
 * @date by 2022-05-06 16:36:16
 */
public interface CarDao {
    int deleteByPrimaryKey(Long id);

    int insert(Car record);

    int insertSelective(Car record);

    Car selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    List<StoreList> selectSelective(StoreQuery storeQuery);

    List<Car> selectBySeriesId(Integer seriesId);

    int selectRepertoryByPrimaryKey(Long carId);

    int updateRepertoryByPrimaryKey(@Param("carId") Long carId, @Param("carNumber") Integer carNumber);

    int addRepertoryByPrimaryKey(@Param("carId") Long carId, @Param("carNumber") Integer carNumber);

    BigDecimal selectSalePriceByPrimaryKey(Long carId);
}
